<?php

namespace app\api\controller;

use app\common\controller\Api;

class Express extends Api
{
    public function get_express_trade()
    {
        $r = http_curl('https://express.baidu.com/express/api/express?query_from_srcid=4001&isBaiduBoxApp=10002&isWisePc=10020&tokenV2=2__iGzRXrxDTLDN14Teg-xjQK6wUVE5-Xu31s4C2WhpZTzEUKJ12q1rcQeH86iNP&cb=jQuery110206789624035933184_1666279673336&appid=4001&com=_auto&nu=777110206014591&vcode=&token=&qid=d094523c0004f467&_=1666279673395');
        $rr = str_replace(')', '', str_replace('/**/jQuery110206789624035933184_1666279673336(', '', $r));
        $res=json_decode($rr, true);
        $this->success('', $res);

    }

    public function query()
    {
        $res = json_decode(http_curl('https://www.kuaidi100.com/autonumber/autoComNum?text=9851375554686'), true);
        $this->success('', $res);
    }
}